Show RAG files in a sidepanel#1977
Open
arielscarpinelli wants to merge 6 commits intomckaywrigley:mainfrom
Open
Show RAG files in a sidepanel#1977arielscarpinelli wants to merge 6 commits intomckaywrigley:mainfrom
arielscarpinelli wants to merge 6 commits intomckaywrigley:mainfrom
Conversation
This change moves the file preview from a dialog to a side panel using the Sheet component. It also adds markdown rendering support to the file preview. The test suite has a pre-existing failure in 'openapi-conversion.test.ts' which is unrelated to these changes.
This change moves the file preview from a modal-style side sheet to a persistent side panel that sits next to the conversation, allowing the user to interact with the main content while the preview is open. The state for the file preview is now managed globally in the ChatbotUIContext. A new RightSidebar component has been created to host the FilePreview. The Dashboard layout has been updated to include the new RightSidebar.
This change fixes a runtime error 'TypeError: setFilePreviewType is not a function' by correctly providing the file preview state and setters to the ChatbotUIContext. The new state variables were missing from the GlobalState provider, causing the application to crash when trying to open a file preview.
This change enhances the file preview side panel with several new features: - A close button has been added to the side panel. - The side panel is now resizable by dragging the handle. - The width of the side panel is persisted across sessions using localStorage. - The default width of the side panel is set to 40% of the window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This feature replaces the modal for viewing retrieved files with a persistent side panel that can be resized. It is also mobile responsive.
output.mp4